{template 'common/header'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if empty($_W['styles']['indexbgimg'])}{else}{$_W['styles']['indexbgimg']}{/if}');background-size:cover;
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#ECECEC{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.box{width:98%; overflow:hidden; margin: 4.5% 0 0 3%;}
	.box .box-item{float:left; text-align:center; display:block; text-decoration:none; outline:none; padding:10px; width:30.9%; margin:0 2% 5% 0; height:90px; position:relative; color:#ffffff; overflow:hidden;}
	.box .box-item i{display:inline-block; width:50px; height:50px; line-height:50px; font-size:35px; color:#FFF; overflow:hidden;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']};display:block; font-size:14px; width:100%; text-align:center; overflow:hidden; height:20px;}
	h3{padding-left:10px; font-size:18px; font-weight:700;color:{if empty($_W['styles']['fontnavcolor'])}#333{else}{$_W['styles']['fontnavcolor']}{/if};}
	.imgs{width:100%; padding:10px 0 0 10px; text-align:center; }
	.imgs a{float:left; display:block; width:32%; height:72px; overflow:hidden; line-height:72px; border:1px solid #dddddd; margin:0 1.3% 10px 0; border-radius:5px; text-decoration:none;}
	.imgs i{font-size:35px; display:block; height:50px; margin:10px auto; line-height:50px; text-align:center;}
	.imgs a .icon{display:block; height:70px; border-radius:5px; vertical-align:middle; margin:0 auto; }
	.bar{width:100%;padding:10px; height:45px; line-height:45px;}
	.bar a{display:block; width:100%; text-align:center; text-decoration:none; color:{if empty($_W['styles']['fontnavcolor'])}#FFF{else}{$_W['styles']['fontnavcolor']}{/if};background-color:#497CA9; border-radius:5px;}
</style>
<div class="box clearfix">
	{php $num = 0;}
	{data func="site_navs" section="1" item="nav"}
	{php if($num == 0) $bg = '#71dd85';}
	{php if($num == 1) $bg = '#b35a7c';}
	{php if($num == 2) $bg = '#399cb8';}
	<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover;" class=""></i>
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 2) $num = 0;}
	{/data}
</div>
{template 'common/slide'}
<div class="clearfix">
	<h3>促销活动</h3>
	<div class="imgs">
		{data func="site_navs" section="2" item="row"}
		{$row['html']}
		{/data}
	</div>
</div>
<div class="bar">
	{data func="site_navs" section="3" item="row"}
	<a href="{$row['url']}" class="box-item">
		<span style="{$row['css']['name']}" title="{$row['name']}">{$row['name']}</span>
	</a>
	{php if($row['iteration'] > 0) break;}
	{/data}
</div>
{template 'common/footer'}